package cn.zlp.hrm.mapper;

import cn.zlp.hrm.domain.Tenant;
import cn.zlp.hrm.query.TenantQuery;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zlp
 * @since 2022-01-02
 */
public interface TenantMapper extends BaseMapper<Tenant> {

    /**
     * 高级分页连表查询
     * @param page
     * @param query
     * @return
     */
    List<Tenant> loadPageList(Page<Tenant> page, TenantQuery query);

    /**
     * 创建租户套餐
     * @param params
     */
    void saveTenantMeals(Map<String, Long> params);
}
